//package com.zhongli.devplatform.mapper;
//
//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import org.apache.ibatis.annotations.Param;
//import org.apache.ibatis.annotations.Select;
//import org.apache.ibatis.annotations.Update;
//
//public interface OrganizationMapper extends BaseMapper<OrganizationPO> {
//
//    @Select("select min(level) from dev_platform_organization where type = #{type}")
//    Integer getMinLevel(String type);
//
//    @Update("update dev_platform_organization set parent_id = #{parentId} where id = #{id}")
//    void updateParent(@Param("id") Long id, @Param("parentId") Long parentId);
//
//    @Update("update dev_platform_organization set parents = #{parents},level =#{level} where id = #{id}")
//    void updateParents(@Param("id") Long id, @Param("parents") String parents, @Param("level") Integer level);
//}
